This page documents version 1.2 of the Motif library.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The MenuShell widget is a custom OverrideShell widget. An
OverrideShell widget bypasses mmmmwwwwmmmm when displaying itself.
It is designed specifically to contain Popup or Pulldown
MenuPanes.
Most application writers never encounter this widget if they
use the menu-system convenience functions, XXXXmmmmCCCCrrrreeeeaaaatttteeeePPPPooooppppuuuuppppMMMMeeeennnnuuuu
or XXXXmmmmCCCCrrrreeeeaaaatttteeeePPPPuuuullllllllddddoooowwwwnnnn MMMMeeeennnnuuuu, to create a Popup or Pulldown
MenuPane. The convenience functions automatically create a
MenuShell widget as the parent of the MenuPane. However, if
the convenience functions are not used, the application
programmer must create the required MenuShell. In this
case, it is important to note that the parent of the
MenuShell depends on the type of menu system being built.
+o If the MenuShell is for the top-level Popup MenuPane,
the MenuShell's parent must be the widget from which
the Popup MenuPane is popped up.
+o If the MenuShell is for a MenuPane that is pulled down
from a Popup or another Pulldown MenuPane, the
MenuShell's parent must be the Popup or Pulldown
MenuPane.
+o If the MenuShell is for a MenuPane that is pulled down
from a MenuBar, the MenuShell's parent must be the
MenuBar.
+o If the MenuShell is for a Pulldown MenuPane in an
OptionMenu, the MenuShell's parent must be the
OptionMenu's parent.
Setting XXXXmmmmNNNNhhhheeeeiiiigggghhhhtttt, XXXXmmmmNNNNwwwwiiiiddddtttthhhh, or XXXXmmmmNNNNbbbboooorrrrddddeeeerrrrWWWWiiiiddddtttthhhh for either a
MenuShell or its child sets that resource to the same value
in both the parent and the child. An application should
always specify these resources for the child, not the
parent.
For the managed child of a MenuShell, regardless of the
XXXXmmmmNNNNddddeeeeffffaaaauuuullllttttFFFFoooonnnnttttLLLLiiiisssstttt is not NULL, XXXXmmmmNNNNbbbbuuuuttttttttoooonnnnFFFFoooonnnnttttLLLLiiiisssstttt
is initialized to the value of XXXXmmmmNNNNddddeeeeffffaaaauuuullllttttFFFFoooonnnnttttLLLLiiiisssstttt.
If the value of XXXXmmmmNNNNddddeeeeffffaaaauuuullllttttFFFFoooonnnnttttLLLLiiiisssstttt is NULL,
XXXXmmmmNNNNbbbbuuuuttttttttoooonnnnFFFFoooonnnnttttLLLLiiiisssstttt is initialized by looking up the